<?php

class Photo extends AppModel {
  public $name = 'Photo';
  public $belongsTo = 'Album';
  public $validate = array(
      'Photo.album_id' => array(
          'name' => 'notEmpty',
          'message'=>'Album is required'
      ),
      'Photo.image_path'=>array(
              'rule'=>array('validImageFormat'),
              'message'=>'Specify a valid image (gif, jpg, png)',
              'allowEmpty'=>true,
                'required'=>false
      )
  );
   
  
}

?>
